import 'package:flutter/material.dart';
import 'package:getwidget/getwidget.dart';

class CodeContent extends StatefulWidget {
  const CodeContent({Key? key}) : super(key: key);

  @override
  State<CodeContent> createState() => _CodeContentState();
}

class _CodeContentState extends State<CodeContent> {
  late TextEditingController searchController = TextEditingController();

  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    searchController.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: GFAppBar(
        title: const Text("乘车码"),
      ),
      body: ListView(
        children: [
          GFCard(
            height: 200,
            boxFit: BoxFit.cover,
            titlePosition: GFPosition.start,
            // showOverlayImage: true,
            // imageOverlay: const AssetImage(
            //   'assets/launcher/launcher.png',
            // ),
            content: Column(children: [
              const Icon(
                Icons.warning,
                size: 30,
              ),
              const Text('您尚未登录深圳地铁APP'),
              GFButton(
                onPressed: () {},
                text: "立即登录",
                fullWidthButton: true,
                color: Theme.of(context).primaryColor,
              )
                

            ]),
          ),
          GFCard(
            boxFit: BoxFit.cover,
            content: Row(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              children: const [
                Tab(
                  icon: Icon(Icons.record_voice_over),
                  child: Text(
                    '地铁线路图',
                  ),
                ),
                Tab(
                  icon: Icon(Icons.airplane_ticket),
                  child: Text(
                    '行程规划',
                  ),
                ),
                Tab(
                  icon: Icon(Icons.location_city),
                  child: Text(
                    '末班可达',
                  ),
                ),
                Tab(
                  icon: Icon(Icons.card_giftcard),
                  child: Text(
                    '乘车发票',
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
